// 团队配置，渠道配置
import {apiRequestList} from "@/common/axios";

const userBuilding = "/dt-business/team/user/building";//团队拥有的楼盘列表
// const cityList = "/dt-business/base/city/list";//城市列表
const cityList = "/dt-business/base/city/page";//城市列表
const cityHouseList = "/dt-business/building/agg/basedata";//根据城市楼盘列表
// const userList = "/dt-business/homepage/getByAdviser";//用户列表
const userList = "/dt-business/user/aggs/user/list";//用户列表
const houseTeamCreate = "/dt-business/team/create";//创建楼盘团队
const teamList = "/dt-business/team/users";//团队人员
const teamListHistory = "/dt-business/team/users/history";//历史团队人员
const peopleJoin = "/dt-business/team/batch/join";//添加人员
const peopleExit = "/dt-business/team/user/exit";//移除人员

const peopleBuilding = "/dt-business/team/user/building";//人员所服务的楼盘的列表
const peopleTeam = "/dt-business/team/teams";//人员所在的团队的列表

const peopleMove = "/dt-business/team/aggs/building/team/move";//人员更换服务的楼盘
const fuzzyQuery = "/dt-business/team/user/teams";//模糊查询

//城市渠道配置

// const channelList = "/dt-business/channel/list";//渠道列表
// const channelList = "/dt-business/customer/getCustomerSource";//聚合渠道列表
// const channelCreate = "/dt-business/channel/create";//新增渠道
// const channelUpdate = "/dt-business/channel/update";//编辑渠道
// const channelDelete = "/dt-business/channel/delete";//编辑渠道

const channelList = "/dt-business/channel/aggChannelQueryGroup";//聚合渠道列表
const channelCreate = "/dt-business/channel/create/two";//新增渠道
const channelDisable = "/dt-business/channel/aggChannelUpdateStatus";//禁用渠道
const ChannelDisableDT = "/dt-business/channel/aggChannelUpdateStatusDt";//Dt禁用渠道
const channelUpdate = "/dt-business/channel/edit";//编辑渠道
const channelDelete = "/dt-business/channel/delete";//删除渠道

//案场渠道配置

const caseChannelList = "/dt-business/channel/queryBaseChannelBuilding";//案场渠道列表
const channelLibrary = "/dt-business/channel/queryChannelList";//案场渠道库
const caseChannelCreate = "/dt-business/channel/addBaseChannelBuilding";//案场渠道新增
const caseChannelUpdate = "/dt-business/channel/editBaseChannelBuilding";//案场渠道编辑
const caseChannelDelete = "/dt-business/channel/deleteBaseChannelBuilding";//案场渠道删除
const caseList1 = "/dt-business/team/teams";//人员拥有的团队列表
// const caseList1 = "/dt-business/team/user/building";//人员拥有的楼盘列表













//城市渠道配置

export const getChannelList = (params)=>{
    return apiRequestList.$post(channelList,params)
};
export const getChannelCreate = (params)=>{
    return apiRequestList.$post(channelCreate,params)
};

export const getChannelDisable = (params)=>{
    return apiRequestList.$post(channelDisable,params)
};
export const getChannelDisableDT = (params)=>{
  return apiRequestList.$post(ChannelDisableDT,params)
};


export const getChannelUpdate = (params)=>{
    return apiRequestList.$post(channelUpdate,params)
};
export const getChannelDelete = (params)=>{
    return apiRequestList.$post(channelDelete,params)
};

// 案场渠道列表
export const getCaseChannelList = (params)=>{
    return apiRequestList.$post(caseChannelList,params)
};
export const getChannelLibrary = (params)=>{
    return apiRequestList.$post(channelLibrary,params)
};
export const getCaseChannelCreate = (params)=>{
    return apiRequestList.$post(caseChannelCreate,params)
};
export const getCaseChannelUpdate = (params)=>{
    return apiRequestList.$post(caseChannelUpdate,params)
};
export const getCaseChannelDelete = (params)=>{
    return apiRequestList.$post(caseChannelDelete,params)
};
export const getCaseList = (params)=>{
    return apiRequestList.$post(caseList1,params)
};

// 团队配置

export const getUserBuilding = (params)=>{
    return apiRequestList.$post(userBuilding,params)
};

export const getCityList = (params)=>{
    return apiRequestList.$post(cityList,params)
};

export const getCityHouseList = (params)=>{
    return apiRequestList.$post(cityHouseList,params)
};

export const getUserList = (params)=>{
    return apiRequestList.$post(userList,params)
};

export const getHouseTeamCreate = (params)=>{
    return apiRequestList.$post(houseTeamCreate,params)
};

export const getTeamList = (params)=>{
    return apiRequestList.$post(teamList,params)
};

export const getTeamListHistory = (params)=>{
    return apiRequestList.$post(teamListHistory,params)
};

export const getPeopleJoin = (params)=>{
    return apiRequestList.$post(peopleJoin,params)
};

export const getPeopleExit = (params)=>{
    return apiRequestList.$post(peopleExit,params)
};

export const getPeopleBuilding = (params)=>{
    return apiRequestList.$post(peopleBuilding,params)
};

export const getPeopleTeam = (params)=>{
    return apiRequestList.$post(peopleTeam,params)
};



export const getPeopleMove = (params)=>{
    return apiRequestList.$post(peopleMove,params)
};


export const getFuzzyQuery = (params)=>{
    return apiRequestList.$post(fuzzyQuery,params)
};



// DT1.4移除人员
const addUserBuildingRecord = "/dt-business/userBuildingRecord/addUserBuildingRecord";
export const getAddUserBuildingRecord = (params)=>{
    return apiRequestList.$post(addUserBuildingRecord,params)
};



